package com.third.customer.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.third.customer.model.dao.param.UserParam;
import com.third.customer.model.tables.User;
import com.third.customer.service.data.UserModifyReq;
import com.third.customer.service.data.UserReq;

/**
 * Created by hehuaichun on 2020/5/19.
 */
public interface UserService {

    User open(Long companyId, UserReq req);

    User modify(Long userId, UserModifyReq req);

    boolean delete(Long userId);

    User getById(Long id);

    User getByName(Long companyId, String name);

    Page<User> list(UserParam param);

    String login(Long companyId, String name, String password);

    boolean logout(String token);

}
